﻿using System.Windows.Input;

namespace KnowledgeFrontierMiner
{
	/// <summary>
	/// Defines custom application <see cref="ICommand"/>s that are used
	/// by the WPF front end.
	/// </summary>
	public class CustomCommands
	{
		/// <summary>
		/// Initializes all the custom commands.
		/// </summary>
		static CustomCommands()
		{
			Exit = new RoutedUICommand("E_xit", "Exit", typeof (CustomCommands),
			                           new InputGestureCollection {new KeyGesture(Key.X, ModifierKeys.Control, "Ctrl+X")});

			SummaryReport = new RoutedUICommand("Summary Report", "SummaryReport", typeof (CustomCommands));
		}

		/// <summary>
		/// An exit command, bound to ctrl+x.
		/// </summary>
		public static RoutedUICommand Exit { get; private set; }

		/// <summary>
		/// A command to generate a summary report of KFD output.
		/// </summary>
		public static RoutedUICommand SummaryReport { get; private set; }
	}
}
